<?php 
$listChucNang=$this->list;
$item=$this->item;
$id=$this->id;
?>

<form action="../chuc-nang-san-pham/success-update-item" method="post">
<input name="id" value="<?php echo $id;?>" style="display: none;"/>
<p>
<label>Nhóm chức năng</label>
<select name="idNhomChucNang">
<option value="0" >.. Chọn nhóm chức năng</option>
<?php 
foreach ($listChucNang as $value) {
	if($value->getId()==$item->getIdNhomChucNang()){
		echo '<option value="'.$value->getId().'" selected="selected" >'.$value->getTenChucNang().'</option>';
	}else
	echo '<option value="'.$value->getId().'">'.$value->getTenChucNang().'</option>';
}
?>
</select>
</p>
<p>
<label>Nội dung</label>
<textarea rows="3" cols="50" name="noiDung"><?php echo $item->getNoiDung();?></textarea>
</p>
<p>
<input type="submit" value="update"/>
</p>
</form>